#! /bin/sh
rm -f *.o test
CFLAGS="-mieee -mftz -msimd -fgnu89-inline -faddress_align=64"
LIBFLAGS="-lstdc++ -lm -lm_slave"
swgcc -mhost -c remote.c ${CFLAGS}
swgcc -mslave -c remote_slave.c  ${CFLAGS}
swgcc -mhybrid -o test remote.o remote_slave.o ${LIBFLAGS}
bsub -I -b -q q_sw_expr -n 1 -cgsp 64 -host_stack 1024 -share_size 6000 -cache_size 0  ./test
